/*************************************
* Created by WebStorm
* Author : 艾尼亚尔·毛拉吾提  
* QQ : 524155792  WeChat : ainiyar0124
* Created Time :2024/2/5 19:07
Desc :
**************************************/
.imgs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  &-left,
  &-right {
    display: flex;
    align-items: center;
  }

  &-left {
    justify-content: flex-start;
    flex: 1;
  }

  &-right {
    justify-content: flex-end;
    cursor: pointer;
  }
}

.material {
  height: 530px;
  display: flex;

  &-left,
  &-center,
  &-right {
    height: 530px;
  }

  &-left {
    width: 200px;

    &-menus {
      height: 480px;
      overflow: hidden;
      padding-bottom: 10px;
    }
  }
  &-center {
    width: 640px;

    &-header {
      display: flex;
      justify-content: space-between;
      height: 42px;
      padding-top: 5px;

      &-upload {
        display: flex;
        justify-content: flex-start;
      }

      &-upload,
      &-search {
        margin-top: 5px;
      }
    }
    &-img-list {
      height: 440px;
      padding-bottom: 5px;

      &-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        padding-top: 10px;

        &-item-box {
          height: 125px;
          cursor: pointer;
          position: relative;
          &-img-item{
            height: 100px;
            box-sizing: border-box;
            position: relative;
            &-selected{
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border-radius: 4px;
              background-color: rgba(0, 0, 0, .5);
              box-sizing: border-box;
              display: flex;
              justify-content: center;
              align-items: center;
              z-index: 10;
            }
          }
          &-img-name {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: 112px;
            height: 25px;
            line-height: 25px;
            text-align: center;
          }
        }
        &-item-box:hover{
          .material-center-img-list-container-item-box-remove{
            display: block;
          }
        }
      }
    }
  }
  &-right{
    width: 150px;
    &-header {
      height: 40px;
      padding-top: 5px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    &-selected-img {
      width: 100%;
      height: 470px;
      overflow: auto;
      padding-top: 10px;
      &-list{
        width: 125px;
        height: 100px;
        box-sizing: border-box;
        position: relative;
        margin-bottom: 16px;
      }
      &-list:hover{
        .material-right-selected-img-list-remove{
          display: block;
        }
      }
    }
  }
  &-center-img-list-container-item-box-remove,&-right-selected-img-list-remove{
    width: 16px;
    height: 16px;
    background-color: rgba(0, 0, 0, .3);
    position: absolute;
    right: -5px;
    top: -7px;
    z-index: 1;
    border-radius: 50%;
    display: none;
    color: #ffffff;
    cursor: pointer;
  }
  &-center-img-list-container-item-box-img-item-image,&-right-selected-img-list-image{
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 100%;
    height: 100%;
  }
}
.light-imgs {
  background-color: rgb(250, 250, 252);
  border: 1px solid rgb(250, 250, 252);
}

.dark-imgs {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}